package com.ax.business.prescription.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class PrescriptionDetail {
    /**
     * 处方明细ID
     */
    private Long prescriptionDetailId;

    /**
     * 处方ID
     */
    private Long prescriptionId;

    /**
     * 处方单号
     */
    private String prescriptionSeq;

    /**
     * 药品ID
     */
    private Long drugId;

    /**
     * 药品名称
     */
    private String drugName;

    /**
     * 规格
     */
    private String spec;

    /**
     * 数量
     */
    private Float number;

    /**
     * 是否含麻药品(0:否；1是)
     */
    private Integer isHemp;

    /**
     * 用法用量
     */
    private String takeMethod;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date updateDate;

    /**
     * 状态(1：有效；0：注销)
     */
    private Integer flag;

    public PrescriptionDetail(Long prescriptionDetailId, Long prescriptionId, String prescriptionSeq, Long drugId, String drugName, String spec, Float number, Integer isHemp, String takeMethod, String remarks, Date createDate, Date updateDate, Integer flag) {
        this.prescriptionDetailId = prescriptionDetailId;
        this.prescriptionId = prescriptionId;
        this.prescriptionSeq = prescriptionSeq;
        this.drugId = drugId;
        this.drugName = drugName;
        this.spec = spec;
        this.number = number;
        this.isHemp = isHemp;
        this.takeMethod = takeMethod;
        this.remarks = remarks;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.flag = flag;
    }

    public PrescriptionDetail() {
        super();
    }

    public Long getPrescriptionDetailId() {
        return prescriptionDetailId;
    }

    public void setPrescriptionDetailId(Long prescriptionDetailId) {
        this.prescriptionDetailId = prescriptionDetailId;
    }

    public Long getPrescriptionId() {
        return prescriptionId;
    }

    public void setPrescriptionId(Long prescriptionId) {
        this.prescriptionId = prescriptionId;
    }

    public String getPrescriptionSeq() {
        return prescriptionSeq;
    }

    public void setPrescriptionSeq(String prescriptionSeq) {
        this.prescriptionSeq = prescriptionSeq == null ? null : prescriptionSeq.trim();
    }

    public Long getDrugId() {
        return drugId;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName == null ? null : drugName.trim();
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec == null ? null : spec.trim();
    }

    public Float getNumber() {
        return number;
    }

    public void setNumber(Float number) {
        this.number = number;
    }

    public Integer getIsHemp() {
        return isHemp;
    }

    public void setIsHemp(Integer isHemp) {
        this.isHemp = isHemp;
    }

    public String getTakeMethod() {
        return takeMethod;
    }

    public void setTakeMethod(String takeMethod) {
        this.takeMethod = takeMethod == null ? null : takeMethod.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}